/**
 * 项目名：	Rumba Plan
 * 
 * 版权所有(C)，上海海鼎信息工程股份有限公司，2006，所有权利保留。
 * 
 * 文件名：	CProcessLog.java
 * 模块说明：	
 * 修改历史：
 * 2006-11-9 - lxm - 创建。
 */
package com.hd123.rumba.log;

import org.apache.log4j.Level;

import com.hd123.rumba.runtime.CPersistent;
import com.hd123.rumba.util.HashMap2;

/**
 * 处理过程日志 | 实体 | 常量类
 * 
 * @author lxm
 * @see IProcessLog
 * 
 */
public class CProcessLog extends CPersistent {

  public static String CAPTION_CLASS = "处理过程日志";

  /** @see IProcessLog#getDomain() */
  public static String CAPTION_DOMAIN = "所属域";

  public static String CAPTION_PROCESS = "处理过程";

  /** @see IProcessLog#getProcessClassName() */
  public static String CAPTION_PROCESSCLASSNAME = "处理过程类名";
  public static final int LENGTH_PROCESSCLASSNAME = 128;

  /** @see IProcessLog#getProcessUuid() */
  public static String CAPTION_PROCESSUUID = "处理过程实例标识";
  public static final int LENGTH_PROCESSUUID = 38;

  /** @see IProcessLog#getProcessCaption() */
  public static String CAPTION_PROCESSCAPTION = "处理过程标题";
  public static final int LENGTH_PROCESSCAPTION = 128;

  public static String CAPTION_OWNERKEYS = "所有者关键字";

  /** @see IProcessLog#getOwnerKey1() */
  public static String CAPTION_OWNERKEY1 = "所有者关键字1";
  public static final int LENGTH_OWNERKEY1 = 128;

  /** @see IProcessLog#getOwnerKey2() */
  public static String CAPTION_OWNERKEY2 = "所有者关键字2";
  public static final int LENGTH_OWNERKEY2 = 128;

  /** @see IProcessLog#getOwnerKey3() */
  public static String CAPTION_OWNERKEY3 = "所有者关键字3";
  public static final int LENGTH_OWNERKEY3 = 128;

  /** @see IProcessLog#getOwnerKey4() */
  public static String CAPTION_OWNERKEY4 = "所有者关键字4";
  public static final int LENGTH_OWNERKEY4 = 128;

  /** @see IProcessLog#getItemNo() */
  public static String CAPTION_ITEMNO = "序号";

  /** @see IProcessLog#getStartTime() */
  public static String CAPTION_STARTTIME = "处理过程开始时间";

  /** @see IProcessLog#getOperator() */
  public static String CAPTION_OPERATOR = "操作人";
  public static final int LENGTH_OPERATOR = 40;

  /** @see IProcessLog#getTime() */
  public static String CAPTION_TIME = "发生时间";

  /** @see IProcessLog#getType() */
  public static String CAPTION_TYPE = "类型";
  public static final Integer VALUE_TYPE_DEBUG = Integer.valueOf(Level.DEBUG_INT);
  public static String CAPTION_TYPE_DEBUG = "调试";
  public static final Integer VALUE_TYPE_INFO = Integer.valueOf(Level.INFO_INT);
  public static String CAPTION_TYPE_INFO = "信息";
  public static final Integer VALUE_TYPE_WARN = Integer.valueOf(Level.WARN_INT);
  public static String CAPTION_TYPE_WARN = "警告";
  public static final Integer VALUE_TYPE_ERROR = Integer.valueOf(Level.ERROR_INT);
  public static String CAPTION_TYPE_ERROR = "错误";
  public static final Integer VALUE_TYPE_FATAL = Integer.valueOf(Level.FATAL_INT);
  public static String CAPTION_TYPE_FATAL = "严重错误";
  public static final HashMap2 TYPEMAP = new HashMap2().put2(VALUE_TYPE_DEBUG, CAPTION_TYPE_DEBUG)
      .put2(VALUE_TYPE_INFO, CAPTION_TYPE_INFO).put2(VALUE_TYPE_WARN, CAPTION_TYPE_WARN).put2(
          VALUE_TYPE_ERROR, CAPTION_TYPE_ERROR).put2(VALUE_TYPE_FATAL, CAPTION_TYPE_FATAL);
  
  /** @see IProcessLog#getLoggerName() */
  public static String CAPTION_LOGGERNAME = "日志名";
  public static final int LENGTH_LOGGERNAME = 128;

  /** @see IProcessLog#getMessage() */
  public static String CAPTION_MESSAGE = "消息";
  public static final int LENGTH_MESSAGE = 4000;
}
